package vip.meeet.bean;

import com.alibaba.fastjson.JSONObject;

import java.util.List;

public class ScrollResponse {

    /**
     * 滚动id
     */
    private String scrollId;
    /**
     * 查询用时多少毫秒
     */
    private Integer took;
    /**
     * 滚动返回的hits部分，sources为空就表示结束
     */
    private List<JSONObject> sources;

    public ScrollResponse() {
    }

    public ScrollResponse(String scrollId, Integer took, List<JSONObject> sources) {
        this.scrollId = scrollId;
        this.took = took;
        this.sources = sources;
    }

    public String getScrollId() {
        return scrollId;
    }

    public void setScrollId(String scrollId) {
        this.scrollId = scrollId;
    }

    public Integer getTook() {
        return took;
    }

    public void setTook(Integer took) {
        this.took = took;
    }

    public List<JSONObject> getSources() {
        return sources;
    }

    public void setSources(List<JSONObject> sources) {
        this.sources = sources;
    }
}
